function messageAcount() {
    $.get('/admin/visual/message_month_info').done(function (data) {
        var myChart = echarts.init(document.getElementById('message_count'),'macarons');
        myChart.setOption({
            title: {
                text: '过去30天发言总计',
                subtext: data.time_start + ' ~ ' + data.time_end,
            },
            tooltip: {
                trigger: 'item',
                formatter: "{a} <br/>{b} : {c} ({d}%)"
            },
            legend: {
                x: 'center',
                y: 'bottom',
                data: ['会员', '游客']
            },
            series: [
                {
                    name: '消息',
                    type: 'pie',
                    radius: '55%',
                    center: ['50%', '60%'],
                    data: [
                        {value: data.count_user, name: '会员'},
                        {value: data.count_guest, name: '游客'},
                    ],
                    itemStyle: {
                        emphasis: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        });
    });
}
